﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LearningCompany_DAO
{
    public partial class Civilite
    {
        #region Attributs et accesseurs

        #endregion

        #region Constructeurs

        #endregion

        #region Méthodes
        public static List<Civilite> GetListeInstances()
        {
            return (from oCivilite in ContexteDAO.ContexteDonnees.Civilite
                    orderby oCivilite.LibelleCourt
                    select oCivilite).ToList();
        }

        public static Civilite GetInstance(int aIdentifiant)
        {
            return (from oCivilite in ContexteDAO.ContexteDonnees.Civilite
                    where oCivilite.Identifiant == aIdentifiant
                    select oCivilite).FirstOrDefault();
        }
        #endregion
    }
}
